import request from "@/utils/request";
// 调单列表
export function List(query) {
    return request({
        url: "/flowable/task/adjuctList",
        method: "get",
        params: query,
    });
}
// 调单列表-重新指派人
export function ListPersion(query) {
    return request({
        url: "/flowable/definition/adjustUserList",
        method: "get",
        params: query,
    });
}

export function List_do(query) {
    return request({
        url: "/flowable/task/getAlreadyDoTasks",
        method: "get",
        params: query,
    });
}

export function List_task(query) {
    return request({
        url: "/flowable/task/statistics",
        method: "get",
        params: query,
    });
}
export function currentUserList(query) {
    return request({
        url: "/flowable/task/selectAdjuctUserList",
        method: "get",
        params: query,
    });
}
//调单审核人列表
export function adjustmentUserList(query) {
    return request({
        url: "/flowable/task/selectAdjuctUserList",
        method: "get",
        params: query,
    });
}
export function TaskAdjust(query) {
    return request({
        url: "/flowable/task/taskAdjust",
        method: "post",
        data: query,
    });
}

export function TaskClaim(query) {
    return request({
        url: "/flowable/task/claim",
        method: "post",
        data: query,
    });
}
export function UpdateState(query) {
    return request({
        url: "/flowable/task/updateStateProcessInstId",
        method: "post",
        data: query,
    });
}
export const ExportFile = "/flowable/task/exportFlowList";
